{
    'targets': [
        {
            'target_name': 'pdfwriter',
            'type': 'static_library',
            'cflags!': [ '-fno-exceptions' ],
            'cflags_cc!': [ '-fno-exceptions' ],
            'conditions': [
                ['OS=="mac"', {
                   'xcode_settings': {
                       'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
                   }
                }]
            ],
            'dependencies': [
               '<(module_root_dir)/src/deps/LibAesgm/binding.gyp:libaesgm',
               '<(module_root_dir)/src/deps/FreeType/binding.gyp:freetype',
               '<(module_root_dir)/src/deps/LibJpeg/binding.gyp:libjpeg',
               '<(module_root_dir)/src/deps/ZLib/binding.gyp:zlib',
               '<(module_root_dir)/src/deps/LibTiff/binding.gyp:libtiff'
            ],
            'include_dirs': [
                '<(module_root_dir)/src/deps/LibAesgm',
                '<(module_root_dir)/src/deps/FreeType/include',
                '<(module_root_dir)/src/deps/LibTiff',
                '<(module_root_dir)/src/deps/ZLib',
                '<(module_root_dir)/src/deps/LibJpeg'
            ],
           'sources': [
               'AbstractContentContext.cpp',
               'AbstractWrittenFont.cpp',
               'ANSIFontWriter.cpp',
               'Ascii7Encoding.cpp',
               'CatalogInformation.cpp',
               'CFFANSIFontWriter.cpp',
               'CFFDescendentFontWriter.cpp',
               'CFFEmbeddedFontWriter.cpp',
               'CFFFileInput.cpp',
               'CFFPrimitiveReader.cpp',
               'CFFPrimitiveWriter.cpp',
               'CharStringType1Interpreter.cpp',
               'CharStringType1Tracer.cpp',
               'CharStringType2Flattener.cpp',
               'CharStringType2Interpreter.cpp',
               'CharStringType2Tracer.cpp',
               'CIDFontWriter.cpp',
               'CMYKRGBColor.cpp',
               'DecryptionHelper.cpp',
               'DescendentFontWriter.cpp',
               'DictionaryContext.cpp',
               'DocumentContext.cpp',
               'EncryptionHelper.cpp',
               'EncryptionOptions.cpp',
               'FontDescriptorWriter.cpp',
               'FreeTypeFaceWrapper.cpp',
               'FreeTypeOpenTypeWrapper.cpp',
               'FreeTypeType1Wrapper.cpp',
               'FreeTypeWrapper.cpp',
               'GraphicState.cpp',
               'GraphicStateStack.cpp',
               'IndirectObjectsReferenceRegistry.cpp',
               'InfoDictionary.cpp',
               'InputAscii85DecodeStream.cpp',
               'InputBufferedStream.cpp',
               'InputByteArrayStream.cpp',
               'InputCharStringDecodeStream.cpp',
               'InputDCTDecodeStream.cpp',
               'InputFile.cpp',
               'InputFileStream.cpp',
               'InputFlateDecodeStream.cpp',
               'InputLimitedStream.cpp',
               'InputPFBDecodeStream.cpp',
               'InputPredictorPNGAverageStream.cpp',
               'InputPredictorPNGNoneStream.cpp',
               'InputPredictorPNGOptimumStream.cpp',
               'InputPredictorPNGPaethStream.cpp',
               'InputPredictorPNGSubStream.cpp',
               'InputPredictorPNGUpStream.cpp',
               'InputPredictorTIFFSubStream.cpp',
               'InputRC4XcodeStream.cpp',
               'InputStreamSkipperStream.cpp',
               'InputStringBufferStream.cpp',
               'InputStringStream.cpp',
               'JPEGImageHandler.cpp',
               'JPEGImageInformation.cpp',
               'JPEGImageParser.cpp',
               'Log.cpp',
               'MD5Generator.cpp',
               'ObjectsContext.cpp',
               'OpenTypeFileInput.cpp',
               'OpenTypePrimitiveReader.cpp',
               'OutputAESEncodeStream.cpp',
               'OutputBufferedStream.cpp',
               'OutputFile.cpp',
               'OutputFileStream.cpp',
               'OutputFlateDecodeStream.cpp',
               'OutputFlateEncodeStream.cpp',
               'OutputRC4XcodeStream.cpp',
               'OutputStreamTraits.cpp',
               'OutputStringBufferStream.cpp',
               'PageContentContext.cpp',
               'PageTree.cpp',
               'ParsedPrimitiveHelper.cpp',
               'PDFArray.cpp',
               'PDFBoolean.cpp',
               'PDFDate.cpp',
               'PDFDictionary.cpp',
               'PDFDocEncoding.cpp',
               'PDFDocumentCopyingContext.cpp',
               'PDFDocumentHandler.cpp',
               'PDFFormXObject.cpp',
               'PDFTiledPattern.cpp',
               'PDFHexString.cpp',
               'PDFImageXObject.cpp',
               'PDFIndirectObjectReference.cpp',
               'PDFInteger.cpp',
               'PDFLiteralString.cpp',
               'PDFModifiedPage.cpp',
               'PDFName.cpp',
               'PDFNull.cpp',
               'PDFObject.cpp',
               'PDFObjectParser.cpp',
               'PDFPage.cpp',
               'PDFPageInput.cpp',
               'PDFParsingOptions.cpp',
               'PDFDictionaryIterator.cpp',
               'PDFArrayIterator.cpp',
               'PDFPageMergingHelper.cpp',
               'PDFParser.cpp',
               'PDFParserTokenizer.cpp',
               'PDFReal.cpp',
               'PDFRectangle.cpp',
               'PDFStream.cpp',
               'PDFStreamInput.cpp',
               'PDFSymbol.cpp',
               'PDFTextString.cpp',
               'PDFUsedFont.cpp',
               'PDFWriter.cpp',
               'PFMFileReader.cpp',
               'PrimitiveObjectsWriter.cpp',
               'PSBool.cpp',
               'RC4.cpp',
               'RefCountObject.cpp',
               'ResourcesDictionary.cpp',
               'StandardEncoding.cpp',
               'StateReader.cpp',
               'StateWriter.cpp',
               'TiledPatternContentContext.cpp',
               'TIFFImageHandler.cpp',
               'TiffUsageParameters.cpp',
               'Timer.cpp',
               'TimersRegistry.cpp',
               'Trace.cpp',
               'TrailerInformation.cpp',
               'TrueTypeANSIFontWriter.cpp',
               'TrueTypeDescendentFontWriter.cpp',
               'TrueTypeEmbeddedFontWriter.cpp',
               'TrueTypePrimitiveWriter.cpp',
               'Type1Input.cpp',
               'Type1ToCFFEmbeddedFontWriter.cpp',
               'Type1ToType2Converter.cpp',
               'Type2CharStringWriter.cpp',
               'UnicodeString.cpp',
               'UppercaseSequance.cpp',
               'UsedFontsRepository.cpp',
               'WinAnsiEncoding.cpp',
               'WrittenFontCFF.cpp',
               'WrittenFontTrueType.cpp',
               'XCryptionCommon.cpp',
               'XObjectContentContext.cpp',
               'AbstractContentContext.h',
               'AbstractWrittenFont.h',
               'AdapterIByteReaderWithPositionToIReadPositionProvider.h',
               'ANSIFontWriter.h',
               'Ascii7Encoding.h',
               'BetweenIncluding.h',
               'BoxingBase.h',
               'CatalogInformation.h',
               'CFFANSIFontWriter.h',
               'CFFDescendentFontWriter.h',
               'CFFEmbeddedFontWriter.h',
               'CFFFileInput.h',
               'CFFPrimitiveReader.h',
               'CFFPrimitiveWriter.h',
               'CharStringDefinitions.h',
               'CharStringType1Interpreter.h',
               'CharStringType1Tracer.h',
               'CharStringType2Flattener.h',
               'CharStringType2Interpreter.h',
               'CharStringType2Tracer.h',
               'CIDFontWriter.h',
               'CMYKRGBColor.h',
               'ContainerIterator.h',
               'DecryptionHelper.h',
               'DescendentFontWriter.h',
               'DictionaryContext.h',
               'DictOperand.h',
               'DocumentContext.h',
               'DocumentContextExtenderAdapter.h',
               'EFontStretch.h',
               'EHummusImageType.h',
               'EncryptionHelper.h',
               'EncryptionHelper.h',
               'EPDFVersion.h',
               'EStatusCode.h',
               'ETokenSeparator.h',
               'FontDescriptorWriter.h',
               'FreeTypeFaceWrapper.h',
               'FreeTypeOpenTypeWrapper.h',
               'FreeTypeType1Wrapper.h',
               'FreeTypeWrapper.h',
               'FSType.h',
               'GlyphUnicodeMapping.h',
               'GraphicState.h',
               'GraphicStateStack.h',
               'IANSIFontWriterHelper.h',
               'IByteReader.h',
               'IByteReaderWithPosition.h',
               'IByteWriter.h',
               'IByteWriterWithPosition.h',
               'IContentContextListener.h',
               'IDescendentFontWriter.h',
               'IDocumentContextExtender.h',
               'IFontDescriptorHelper.h',
               'IFormEndWritingTask.h',
               'ITiledPatternEndWritingTask.h',
               'IFreeTypeFaceExtender.h',
               'IndirectObjectsReferenceRegistry.h',
               'InfoDictionary.h',
               'InputAscii85DecodeStream.h',
               'InputBufferedStream.h',
               'InputByteArrayStream.h',
               'InputCharStringDecodeStream.h',
               'InputDCTDecodeStream.h',
               'InputFile.h',
               'InputFileStream.h',
               'InputFlateDecodeStream.h',
               'InputLimitedStream.h',
               'InputPFBDecodeStream.h',
               'InputPredictorPNGAverageStream.h',
               'InputPredictorPNGNoneStream.h',
               'InputPredictorPNGOptimumStream.h',
               'InputPredictorPNGPaethStream.h',
               'InputPredictorPNGSubStream.h',
               'InputPredictorPNGUpStream.h',
               'InputPredictorTIFFSubStream.h',
               'InputRC4XcodeStream.h',
               'InputStreamSkipperStream.h',
               'InputStringBufferStream.h',
               'InputStringStream.h',
               'IOBasicTypes.h',
               'IObjectsContextExtender.h',
               'IPageEndWritingTask.h',
               'IPDFParserExtender.h',
               'IReadPositionProvider.h',
               'IResourceWritingTask.h',
               'IType1InterpreterImplementation.h',
               'IType2InterpreterImplementation.h',
               'IWrittenFont.h',
               'JPEGImageHandler.h',
               'JPEGImageInformation.h',
               'JPEGImageParser.h',
               'Log.h',
               'MapIterator.h',
               'MD5Generator.h',
               'MyStringBuf.h',
               'ObjectsBasicTypes.h',
               'ObjectsContext.h',
               'ObjectsContextExtenderAdapter.h',
               'OpenTypeFileInput.h',
               'OpenTypePrimitiveReader.h',
               'OutputAESEncodeStream.h',
               'OutputBufferedStream.h',
               'OutputFile.h',
               'OutputFileStream.h',
               'OutputFlateDecodeStream.h',
               'OutputFlateEncodeStream.h',
               'OutputRC4XcodeStream.h',
               'OutputStreamTraits.h',
               'OutputStringBufferStream.h',
               'PageContentContext.h',
               'PageTree.h',
               'ParsedPrimitiveHelper.h',
               'PDFArray.h',
               'PDFBoolean.h',
               'PDFDate.h',
               'PDFDictionary.h',
               'PDFDocEncoding.h',
               'PDFDocumentCopyingContext.h',
               'PDFDocumentHandler.h',
               'PDFEmbedParameterTypes.h',
               'PDFFormXObject.h',
               'PDFParsingOptions.h',
               'PDFTiledPattern.h',
               'TiledPatternContentContext.h',
               'PDFHexString.h',
               'PDFImageXObject.h',
               'PDFIndirectObjectReference.h',
               'PDFInteger.h',
               'PDFLiteralString.h',
               'PDFModifiedPage.h',
               'PDFName.h',
               'PDFNull.h',
               'PDFObject.h',
               'PDFObjectCast.h',
               'PDFObjectParser.h',
               'PDFPage.h',
               'PDFPageInput.h',
               'PDFDictionaryIterator.h',
               'PDFArrayIterator.h',
               'PDFPageMergingHelper.h',
               'PDFParser.h',
               'PDFParserTokenizer.h',
               'PDFReal.h',
               'PDFRectangle.h',
               'PDFStream.h',
               'PDFStreamInput.h',
               'PDFSymbol.h',
               'PDFTextString.h',
               'PDFUsedFont.h',
               'PDFWriter.h',
               'PFMFileReader.h',
               'PrimitiveObjectsWriter.h',
               'ProcsetResourcesConstants.h',
               'PSBool.h',
               'RC4.h',
               'RefCountObject.h',
               'RefCountPtr.h',
               'ResourcesDictionary.h',
               'SafeBufferMacrosDefs.h',
               'Singleton.h',
               'SingleValueContainerIterator.h',
               'StandardEncoding.h',
               'StateReader.h',
               'StateWriter.h',
               'TIFFImageHandler.h',
               'TiffUsageParameters.h',
               'Timer.h',
               'TimersRegistry.h',
               'Trace.h',
               'TrailerInformation.h',
               'TrueTypeANSIFontWriter.h',
               'TrueTypeDescendentFontWriter.h',
               'TrueTypeEmbeddedFontWriter.h',
               'TrueTypePrimitiveWriter.h',
               'Type1Input.h',
               'Type1ToCFFEmbeddedFontWriter.h',
               'Type1ToType2Converter.h',
               'Type2CharStringWriter.h',
               'UnicodeString.h',
               'UppercaseSequance.h',
               'UsedFontsRepository.h',
               'WinAnsiEncoding.h',
               'WrittenFontCFF.h',
               'WrittenFontRepresentation.h',
               'WrittenFontTrueType.h',
               'XCryptionCommon.h',
               'XObjectContentContext.h'
            ]
        }
    ]        
}
